package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供货能力对象 sys_power
 *
 * @author ruoyi
 * @date 2024-07-27
 */
public class SysPower extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 生产能力id
     */
    private Long powerId;

    /**
     * 供应商id
     */
    @Excel(name = "供应商id")
    private Long aId;

    /**
     * 父id
     */
    @Excel(name = "父id")
    private Long pId;

    /**
     * 供应商名称/散户负责人姓名
     */
    @Excel(name = "供应商名称/散户负责人姓名")
    private String aName;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String proName;

    private String power;

    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date produceAt;

    /**
     * 生产周期
     */
    @Excel(name = "生产周期")
    private String productionCycle;

    /**
     * 出货日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outAt;

    public void setPowerId(Long powerId) {
        this.powerId = powerId;
    }

    public Long getPowerId() {
        return powerId;
    }

    public void setaId(Long aId) {
        this.aId = aId;
    }

    public Long getaId() {
        return aId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public Long getpId() {
        return pId;
    }

    public void setaName(String aName) {
        this.aName = aName;
    }

    public String getaName() {
        return aName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProName() {
        return proName;
    }

    public void setProduceAt(Date produceAt) {
        this.produceAt = produceAt;
    }

    public Date getProduceAt() {
        return produceAt;
    }

    public void setProductionCycle(String productionCycle) {
        this.productionCycle = productionCycle;
    }

    public String getProductionCycle() {
        return productionCycle;
    }

    public void setOutAt(Date outAt) {
        this.outAt = outAt;
    }

    public Date getOutAt() {
        return outAt;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("powerId", getPowerId())
                .append("aId", getaId())
                .append("pId", getpId())
                .append("aName", getaName())
                .append("proName", getProName())
                .append("power", getPower())
                .append("produceAt", getProduceAt())
                .append("productionCycle", getProductionCycle())
                .append("outAt", getOutAt())
                .toString();
    }
}
